package com.eliasbalasis.dwr4gwt.example;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Servlet implementation class for Servlet: PublisherServlet
 *
 */
 public class PublisherServlet extends javax.servlet.http.HttpServlet {
   static Publisher publisher;
    /* (non-Java-doc)
	 * @see javax.servlet.http.HttpServlet#HttpServlet()
	 */
	public PublisherServlet() {
		super();
	}   	
	
	/* (non-Javadoc)
	 * @see javax.servlet.http.HttpServlet#service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
	 */
	@Override
	protected void service(HttpServletRequest arg0, HttpServletResponse arg1)
			throws ServletException, IOException {
		if (publisher==null) {
			publisher = new Publisher();
		}
		super.service(arg0, arg1);
	}   	  	    
}